how to find the domain and range of a fucntion